package com.dyh.quickdemo.bizDemo;

import com.alibaba.fastjson.JSON;

public class SimpleUserResult {
    private Long id;
    private String account;
    private String name;
    private SimpleUserResult creator;
    private SimpleUserResult updator;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SimpleUserResult getCreator() {
        return creator;
    }

    public void setCreator(SimpleUserResult creator) {
        this.creator = creator;
    }

    public SimpleUserResult getUpdator() {
        return updator;
    }

    public void setUpdator(SimpleUserResult updator) {
        this.updator = updator;
    }

    public static void main(String[] args) {
        SimpleUserResult sur = new SimpleUserResult();

        SimpleUserResult creator = new SimpleUserResult();
        SimpleUserResult updator = new SimpleUserResult();
        creator.setAccount("114");
        creator.setId(1L);
        creator.setName("yjsnp");

        updator.setAccount("364");
        updator.setId(2L);
        updator.setName("mur");

        sur.setCreator(creator);
        sur.setUpdator(updator);

        System.out.println(JSON.toJSONString(sur));

    }
}
